Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new notification subtype (group creation) #2406

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

gekkedev
Copy link
Contributor

@gekkedev gekkedev commented Nov 2, 2024

I received this new GP2 event subtype shortly/immediately after joining a group though an invitation link, so I suspect it does not actually refer to the group's initial creation:

{
  id: 'false_[REDACTED]-1570181234@g.us_[REDACTED]create_[REDACTED]',
  viewed: false,
  body: 'Lorem ipsum',
  type: 'gp2',
  subtype: 'create',
  t: 1570181234,
  from: '[REDACTED]-1570181234@g.us',
  isNewMsg: true,
  star: false,
  kicNotified: false,
  recvFresh: true,
  isFromTemplate: false,
  pollInvalidated: false,
  isSentCagPollCreation: false,
  latestEditMsgKey: null,
  latestEditSenderTimestampMs: null,
  recipients: [],
  mentionedJidList: [],
  groupMentions: [],
  isEventCanceled: false,
  eventInvalidated: false,
  isVcardOverMmsDocument: false,
  isForwarded: false,
  hasReaction: false,
  productHeaderImageRejected: false,
  lastPlaybackProgress: 0,
  isDynamicReplyButtonsMsg: false,
  isCarouselCard: false,
  parentMsgId: null,
  isMdHistoryMsg: false,
  stickerSentTs: 0,
  isAvatar: false,
  lastUpdateFromServerTs: 0,
  invokedBotWid: null,
  bizBotType: null,
  botResponseTargetId: null,
  botPluginType: null,
  botPluginReferenceIndex: null,
  botPluginSearchProvider: null,
  botPluginSearchUrl: null,
  botPluginSearchQuery: null,
  botPluginMaybeParent: false,
  botReelPluginThumbnailCdnUrl: null,
  botMsgBodyType: null,
  requiresDirectConnection: null,
  bizContentPlaceholderType: null,
  hostedBizEncStateMismatch: false,
  senderOrRecipientAccountTypeHosted: false,
  placeholderCreatedWhenAccountIsHosted: false,
  chatId: '[REDACTED]-1570181234@g.us',
  fromMe: false,
  sender: null,
  timestamp: 1570181234,
  content: 'Lorem ipsum',
  isGroupMsg: true,
  mediaData: {}
}

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@icleitoncosta icleitoncosta merged commit 6693eb7 into wppconnect-team:master Dec 20, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants